#include <stdio.h>
#include <sys/types.h>
#include <unistd.h>
int main()
{
  chdir("/home/ghs/Linux");
  FILE* fp = fopen("log.txt","w");
  fclose(fp);
  (void)fp;//ignor warning
  while(1)
  {
    printf("I am a process,pid:%d\n",getpid());
    sleep(1);
  }
  return 0;
}
